﻿/* ----------------------------------------------------------------------------
 * Copyright (c) Philip Stears 
 *
 * This source code is subject to terms and conditions of the Microsoft Public 
 * License (Ms-PL).
 * 
 * By using this source code in any fashion, you are agreeing to be bound 
 * by the terms of the Microsoft Public License.
 * 
 * To request a copy of the Microsoft Public License, send a request by email
 * to license@connectbasic.net.
 *
 * This notice must not be removed from this software.
 * ---------------------------------------------------------------------------- */

namespace ConnectBasic.ObjectModel
{
    using System.Collections.Generic;

    /// <summary>
    /// Represents a standard module, i.e. a code unit that contains global functions.
    /// </summary>
    public sealed class StandardModuleCodeUnit : CodeUnitBase
    {

        /// <summary>
        /// Initializes a new instance of the <see cref="StandardModuleCodeUnit" /> class.
        /// </summary>
        /// <param name="path">The path to the source code file.</param>
        /// <param name="methods">The methods which belong to the code unit.</param>
        /// <param name="constants">The constants which belong to the code unit.</param>
        /// <param name="variables">The variables which belong to the code unit.</param>
        public StandardModuleCodeUnit(string path, IEnumerable<MethodDefinitionNode> methods, IEnumerable<ConstantStatement> constants, IEnumerable<VariableDeclarationStatement> variables)
            : base(path, methods, constants, variables)
        {
        }
    }
}
